package com.feihong.activity.enums;

/**
 *异常枚举，方便统一管理
 * @author Filter
 */
public enum CustomExceptionEnum {
    FORMAT_UPLOAD_ERROR("105","上传格式错误"),
    FILE_SIZE_EXCEEDS_MAXIMUM("104,","数量不是全部"),
    QUANTITY_IS_NOT_ALL("103,","数量不是全部"),
    APPLICATION_CONTEXT_EXCEPTION("101","自定义上下文异常"),
    NO_SUCH_SENSOR_EXCEPTION("102","区级平台无相关设备信息");

    private String code;
    private String msg;

    CustomExceptionEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
